<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Record>
 */
class RecordFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            "user_id" => fake()->numberBetween(1, 20),
            "wechat_id" => "w:" .mt_rand(100000,999999),
            "video_id" => "v" . mt_rand(100000,999999),
            "video_nickname" => "昵称" . mt_rand(100000,999999),
            "remark"=>"备注",
            "order_img" => fake()->imageUrl(300, 300),
            "start_at" => Carbon::now()->subDays(31),
            "expired_at" => Carbon::now()->addDays(4),
        ];
    }
}
